-- GENERATED SPELL FOR [Keeper Ordanus] --


function spell0_4273(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(12747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4273', 11500, 1)
end

function spell1_4273(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4273', 3000, 1)
end

function Sorts_4273(pUnit, Event)
local choix_sorts_4273 = math.random(0, 1)
if choix_sorts_4273 == 0 then
pUnit:RegisterEvent('spell0_4273', 1, 1)
end
if choix_sorts_4273 == 1 then
pUnit:RegisterEvent('spell1_4273', 1, 1)
end
end

function mob4273_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4273', math.random(1500, 3000), 1)
end

function mob4273_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4273_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4273_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4273, 1, 'mob4273_Action')
RegisterUnitEvent(4273, 2, 'mob4273_Leave')
RegisterUnitEvent(4273, 3, 'mob4273_Kill')
RegisterUnitEvent(4273, 4, 'mob4273_Die')
